FROM python:3.7
WORKDIR /opt/apps

COPY requirements.txt ./
RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

COPY . .
EXPOSE 8080
CMD ["gunicorn", "app:app", "-c", "./gunicorn.conf.py"]
